.class public Les/ja;
.super Les/t9;
.source "VideoProcessor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/ja$d;,
        Les/ja$e;
    }
.end annotation


# instance fields
.field private A:Les/ja$e;

.field private B:Les/fa;

.field private C:Ljava/nio/ByteBuffer;

.field private D:Les/m7$h;

.field private E:Les/l9$h;

.field private F:Les/u9$a;

.field private b:Ljava/lang/String;

.field private c:Les/ja$d;

.field private d:Les/f8;

.field private e:Les/t7;

.field private f:Les/a8;

.field private g:Ljava/lang/String;

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:Les/b9;

.field private m:Z

.field private n:J

.field private o:Z

.field private p:Z

.field private q:J

.field private r:J

.field private s:J

.field private t:Les/n7;

.field private u:Les/q7;

.field private v:Landroid/media/MediaFormat;

.field private w:Les/u9;

.field private x:Lcom/esfile/screen/recorder/media/glutils/c;

.field private y:Les/ga;

.field private z:Les/ea;


# direct methods
.method public constructor <init>(Ljava/lang/String;Les/ja$d;Les/f8;Les/t7;)V
    .locals 5

    .line 1
    invoke-direct {p0}, Les/t9;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/ja;->m:Z

    const-wide/16 v1, -0x1

    .line 3
    iput-wide v1, p0, Les/ja;->n:J

    .line 4
    iput-boolean v0, p0, Les/ja;->o:Z

    .line 5
    iput-boolean v0, p0, Les/ja;->p:Z

    const-wide/16 v3, 0x0

    .line 6
    iput-wide v3, p0, Les/ja;->q:J

    .line 7
    iput-wide v1, p0, Les/ja;->r:J

    .line 8
    iput-wide v1, p0, Les/ja;->s:J

    .line 9
    new-instance v0, Les/ja$a;

    invoke-direct {v0, p0}, Les/ja$a;-><init>(Les/ja;)V

    iput-object v0, p0, Les/ja;->D:Les/m7$h;

    .line 10
    new-instance v0, Les/ja$b;

    invoke-direct {v0, p0}, Les/ja$b;-><init>(Les/ja;)V

    iput-object v0, p0, Les/ja;->E:Les/l9$h;

    .line 11
    new-instance v0, Les/ja$c;

    invoke-direct {v0, p0}, Les/ja$c;-><init>(Les/ja;)V

    iput-object v0, p0, Les/ja;->F:Les/u9$a;

    .line 12
    iput-object p1, p0, Les/ja;->b:Ljava/lang/String;

    .line 13
    iput-object p2, p0, Les/ja;->c:Les/ja$d;

    .line 14
    iput-object p3, p0, Les/ja;->d:Les/f8;

    .line 15
    iput-object p4, p0, Les/ja;->e:Les/t7;

    .line 16
    iget-object p1, p2, Les/ja$d;->n:Les/b8;

    if-eqz p1, :cond_0

    .line 17
    new-instance p2, Les/a8;

    invoke-direct {p2, p1}, Les/a8;-><init>(Les/b8;)V

    iput-object p2, p0, Les/ja;->f:Les/a8;

    .line 18
    :cond_0
    new-instance p1, Landroid/os/HandlerThread;

    const-string p2, "VideoProcessor"

    invoke-direct {p1, p2}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    .line 19
    invoke-virtual {p1}, Landroid/os/HandlerThread;->start()V

    .line 20
    new-instance p2, Les/ja$e;

    invoke-virtual {p1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object p1

    invoke-direct {p2, p0, p1}, Les/ja$e;-><init>(Les/ja;Landroid/os/Looper;)V

    iput-object p2, p0, Les/ja;->A:Les/ja$e;

    return-void
.end method

.method static synthetic a(Les/ja;J)J
    .locals 0

    .line 6
    invoke-direct {p0, p1, p2}, Les/ja;->b(J)J

    move-result-wide p0

    return-wide p0
.end method

.method static synthetic a(Les/ja;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ja;->n()Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/ja;Landroid/media/MediaFormat;)Z
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Les/t9;->a(Landroid/media/MediaFormat;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/ja;Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 0

    .line 5
    invoke-virtual {p0, p1}, Les/t9;->a(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/ja;Ljava/lang/Exception;)Z
    .locals 0

    .line 3
    invoke-virtual {p0, p1}, Les/t9;->a(Ljava/lang/Exception;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/ja;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/ja;->p:Z

    return p1
.end method

.method private declared-synchronized b(J)J
    .locals 5

    monitor-enter p0

    .line 6
    :try_start_0
    iget-wide v0, p0, Les/ja;->r:J

    cmp-long v2, p1, v0

    if-ltz v2, :cond_1

    .line 7
    iget-wide v0, p0, Les/ja;->r:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-ltz v4, :cond_0

    .line 8
    iget-wide v0, p0, Les/ja;->q:J

    iget-wide v2, p0, Les/ja;->r:J

    sub-long v2, p1, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/ja;->q:J

    .line 9
    :cond_0
    iput-wide p1, p0, Les/ja;->r:J

    .line 10
    :cond_1
    iget-wide p1, p0, Les/ja;->q:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method private b(Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 21

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    .line 11
    iget-object v2, v0, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v3, v2, Landroid/media/MediaCodec$BufferInfo;->size:I

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-gtz v3, :cond_0

    .line 12
    invoke-virtual {v0, v4}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    return v5

    .line 13
    :cond_0
    iget v2, v2, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v2, v2, 0x4

    if-eqz v2, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    .line 14
    :goto_0
    iget-object v3, v1, Les/ja;->z:Les/ea;

    iget-wide v6, v0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    invoke-virtual {v3, v6, v7}, Les/ea;->b(J)J

    move-result-wide v6

    .line 15
    iget-object v3, v1, Les/ja;->z:Les/ea;

    iget-wide v8, v0, Lcom/esfile/screen/recorder/media/util/l;->c:J

    invoke-virtual {v3, v8, v9}, Les/ea;->a(J)F

    move-result v3

    const/high16 v8, 0x3f800000    # 1.0f

    cmpl-float v3, v3, v8

    if-lez v3, :cond_2

    .line 16
    iget-object v3, v1, Les/ja;->B:Les/fa;

    invoke-virtual {v3, v6, v7}, Les/fa;->a(J)Z

    move-result v3

    if-eqz v3, :cond_2

    if-nez v2, :cond_2

    .line 17
    invoke-virtual {v0, v4}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    return v5

    .line 18
    :cond_2
    iget-object v3, v1, Les/ja;->B:Les/fa;

    invoke-virtual {v3, v6, v7}, Les/fa;->b(J)V

    .line 19
    invoke-direct {v1, v6, v7}, Les/ja;->b(J)J

    move-result-wide v6

    .line 20
    iget-wide v9, v1, Les/ja;->s:J

    const-wide/16 v11, 0x0

    cmp-long v3, v9, v11

    if-gez v3, :cond_3

    .line 21
    iput-wide v6, v1, Les/ja;->s:J

    .line 22
    :cond_3
    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v3

    const/4 v9, 0x3

    new-array v9, v9, [Ljava/lang/Object;

    .line 23
    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    aput-object v10, v9, v4

    iget-wide v13, v1, Les/ja;->s:J

    invoke-static {v13, v14}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    aput-object v10, v9, v5

    const/4 v10, 0x2

    long-to-float v13, v6

    mul-float v13, v13, v8

    iget-wide v14, v1, Les/ja;->s:J

    long-to-float v14, v14

    sub-float/2addr v13, v14

    const/high16 v14, 0x447a0000    # 1000.0f

    div-float/2addr v13, v14

    invoke-static {v13}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v13

    aput-object v13, v9, v10

    const-string v10, "this = %d, last = %d, interval = %f"

    .line 24
    invoke-static {v3, v10, v9}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    const-string v9, "vpsr"

    invoke-static {v9, v3}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    iget-wide v13, v1, Les/ja;->n:J

    const-wide/16 v15, 0x3e8

    cmp-long v3, v13, v11

    if-lez v3, :cond_5

    iget-wide v10, v1, Les/ja;->s:J

    sub-long v17, v6, v10

    const-wide/16 v19, 0x3

    mul-long v19, v19, v13

    cmp-long v3, v17, v19

    if-ltz v3, :cond_5

    sub-long v10, v6, v10

    long-to-float v3, v10

    mul-float v3, v3, v8

    long-to-float v8, v13

    div-float/2addr v3, v8

    float-to-int v3, v3

    .line 26
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "add frame count = "

    invoke-virtual {v8, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v9, v8}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v8, 0x1

    :goto_1
    if-ge v8, v3, :cond_5

    .line 27
    iget-object v10, v1, Les/ja;->y:Les/ga;

    if-eqz v10, :cond_4

    iget-object v10, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    if-eqz v10, :cond_4

    .line 28
    iget-wide v10, v1, Les/ja;->s:J

    iget-wide v12, v1, Les/ja;->n:J

    int-to-long v4, v8

    mul-long v12, v12, v4

    add-long/2addr v10, v12

    .line 29
    iget-object v4, v1, Les/ja;->d:Les/f8;

    if-eqz v4, :cond_4

    invoke-virtual {v4, v10, v11}, Les/f8;->a(J)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 30
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "add a frame at = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v10, v11}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v9, v4}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 31
    iget-object v4, v1, Les/ja;->y:Les/ga;

    invoke-virtual {v4, v10, v11}, Lcom/esfile/screen/recorder/media/glutils/d;->b(J)V

    .line 32
    iget-object v4, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    mul-long v10, v10, v15

    invoke-virtual {v4, v10, v11}, Lcom/esfile/screen/recorder/media/glutils/c;->a(J)V

    .line 33
    iget-object v4, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    invoke-virtual {v4}, Lcom/esfile/screen/recorder/media/glutils/c;->c()Z

    .line 34
    iget-object v4, v1, Les/ja;->u:Les/q7;

    invoke-virtual {v4}, Les/q7;->u()V

    :cond_4
    add-int/lit8 v8, v8, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x1

    goto :goto_1

    :cond_5
    const/4 v3, 0x1

    .line 35
    invoke-virtual {v0, v3}, Lcom/esfile/screen/recorder/media/util/l;->a(Z)V

    .line 36
    :try_start_0
    iget-object v0, v1, Les/ja;->y:Les/ga;

    if-eqz v0, :cond_7

    iget-object v0, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    if-eqz v0, :cond_7

    .line 37
    iget-object v0, v1, Les/ja;->y:Les/ga;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/glutils/d;->a()V

    .line 38
    iget-object v0, v1, Les/ja;->y:Les/ga;

    invoke-virtual {v0, v6, v7}, Lcom/esfile/screen/recorder/media/glutils/d;->b(J)V

    if-eqz v2, :cond_6

    .line 39
    iget-object v0, v1, Les/ja;->y:Les/ga;

    invoke-virtual {v0}, Les/ga;->j()Ljava/nio/ByteBuffer;

    move-result-object v0

    iput-object v0, v1, Les/ja;->C:Ljava/nio/ByteBuffer;

    .line 40
    :cond_6
    iget-object v0, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    mul-long v2, v6, v15

    invoke-virtual {v0, v2, v3}, Lcom/esfile/screen/recorder/media/glutils/c;->a(J)V

    .line 41
    iget-object v0, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/glutils/c;->c()Z

    .line 42
    iget-object v0, v1, Les/ja;->u:Les/q7;

    invoke-virtual {v0}, Les/q7;->u()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 43
    :cond_7
    iput-wide v6, v1, Les/ja;->s:J

    const/4 v0, 0x1

    return v0

    :catch_0
    move-exception v0

    const-string v2, "edit error"

    .line 44
    invoke-static {v2, v0}, Les/la;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 45
    invoke-virtual {v1, v0}, Les/t9;->a(Ljava/lang/Exception;)Z

    const/4 v2, 0x0

    return v2
.end method

.method static synthetic b(Les/ja;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/ja;->p:Z

    return p0
.end method

.method static synthetic b(Les/ja;Landroid/media/MediaFormat;)Z
    .locals 0

    .line 2
    invoke-virtual {p0, p1}, Les/t9;->a(Landroid/media/MediaFormat;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Les/ja;Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Les/t9;->a(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Les/ja;Ljava/lang/Exception;)Z
    .locals 0

    .line 5
    invoke-virtual {p0, p1}, Les/t9;->a(Ljava/lang/Exception;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Les/ja;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Les/ja;->m:Z

    return p1
.end method

.method static synthetic c(Les/ja;)Les/u9;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->w:Les/u9;

    return-object p0
.end method

.method static synthetic c(Les/ja;Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Les/ja;->b(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result p0

    return p0
.end method

.method static synthetic d(Les/ja;)Les/ja$e;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->A:Les/ja$e;

    return-object p0
.end method

.method static synthetic e(Les/ja;)Les/n7;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->t:Les/n7;

    return-object p0
.end method

.method static synthetic f(Les/ja;)Z
    .locals 0

    .line 1
    invoke-virtual {p0}, Les/t9;->b()Z

    move-result p0

    return p0
.end method

.method static synthetic g(Les/ja;)Landroid/media/MediaFormat;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->v:Landroid/media/MediaFormat;

    return-object p0
.end method

.method static synthetic h(Les/ja;)Les/ea;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->z:Les/ea;

    return-object p0
.end method

.method static synthetic i(Les/ja;)Les/q7;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->u:Les/q7;

    return-object p0
.end method

.method static synthetic j(Les/ja;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ja;->o()V

    return-void
.end method

.method private k()V
    .locals 5

    .line 2
    iget-object v0, p0, Les/ja;->d:Les/f8;

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {v0}, Les/f8;->a()J

    move-result-wide v0

    iput-wide v0, p0, Les/ja;->n:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    const-wide/16 v2, 0x7530

    .line 4
    invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    iput-wide v0, p0, Les/ja;->n:J

    .line 5
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "video ads frame time us = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v1, p0, Les/ja;->n:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "vpsr"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    return-void
.end method

.method static synthetic k(Les/ja;)Z
    .locals 0

    .line 1
    invoke-virtual {p0}, Les/t9;->b()Z

    move-result p0

    return p0
.end method

.method private l()Z
    .locals 9

    .line 2
    new-instance v0, Landroid/util/Pair;

    iget-wide v1, p0, Les/ja;->q:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    iget-wide v2, p0, Les/ja;->q:J

    iget-object v4, p0, Les/ja;->c:Les/ja$d;

    iget-wide v5, v4, Les/ja$d;->h:J

    add-long/2addr v2, v5

    iget-wide v4, v4, Les/ja$d;->g:J

    sub-long/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 3
    iget-object v1, p0, Les/ja;->z:Les/ea;

    iget-object v2, p0, Les/ja;->c:Les/ja$d;

    iget-wide v3, v2, Les/ja$d;->g:J

    iget-wide v5, v2, Les/ja$d;->h:J

    invoke-virtual {v1, v3, v4, v5, v6}, Les/ea;->b(JJ)Z

    move-result v1

    .line 4
    iget-object v2, p0, Les/ja;->l:Les/b9;

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v2, :cond_0

    iget-object v5, p0, Les/ja;->c:Les/ja$d;

    iget-object v5, v5, Les/ja$d;->o:Les/b9;

    invoke-virtual {v2, v5}, Les/b9;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v2, 0x1

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    .line 5
    :goto_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "needToProcess:<"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v6, p0, Les/ja;->h:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v6, ", "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, p0, Les/ja;->c:Les/ja$d;

    iget v6, v6, Les/ja$d;->a:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v6, ">, <"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v7, p0, Les/ja;->i:I

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, " "

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v8, p0, Les/ja;->c:Les/ja$d;

    iget v8, v8, Les/ja$d;->b:I

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v8, p0, Les/ja;->g:Ljava/lang/String;

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v8, p0, Les/ja;->j:I

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v8, p0, Les/ja;->c:Les/ja$d;

    iget v8, v8, Les/ja$d;->e:I

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v8, p0, Les/ja;->k:I

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, p0, Les/ja;->c:Les/ja$d;

    iget v7, v7, Les/ja$d;->f:I

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v6, p0, Les/ja;->c:Les/ja$d;

    iget v6, v6, Les/ja$d;->j:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v6, ">, <need rebuild fr:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v6, "><sps equals:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v6, ">"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const-string v6, "vpsr"

    invoke-static {v6, v5}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    iget v5, p0, Les/ja;->h:I

    iget-object v6, p0, Les/ja;->c:Les/ja$d;

    iget v7, v6, Les/ja$d;->a:I

    if-ne v5, v7, :cond_6

    iget v5, p0, Les/ja;->i:I

    iget v6, v6, Les/ja$d;->b:I

    if-ne v5, v6, :cond_6

    iget-object v5, p0, Les/ja;->g:Ljava/lang/String;

    const-string v6, "video/avc"

    .line 7
    invoke-static {v5, v6}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_6

    iget v5, p0, Les/ja;->j:I

    const/4 v6, -0x1

    if-eq v5, v6, :cond_6

    iget-object v6, p0, Les/ja;->c:Les/ja$d;

    iget v7, v6, Les/ja$d;->e:I

    if-ne v5, v7, :cond_6

    iget v5, p0, Les/ja;->k:I

    iget v6, v6, Les/ja$d;->f:I

    .line 8
    invoke-static {v5, v6}, Lcom/esfile/screen/recorder/media/util/c;->a(II)Z

    move-result v5

    if-eqz v5, :cond_6

    iget-object v5, p0, Les/ja;->c:Les/ja$d;

    iget v6, v5, Les/ja$d;->j:I

    if-nez v6, :cond_6

    iget-object v5, v5, Les/ja$d;->k:Landroid/graphics/RectF;

    if-eqz v5, :cond_1

    .line 9
    invoke-virtual {v5}, Landroid/graphics/RectF;->width()F

    move-result v5

    const/4 v6, 0x0

    cmpl-float v5, v5, v6

    if-lez v5, :cond_1

    iget-object v5, p0, Les/ja;->c:Les/ja$d;

    iget-object v5, v5, Les/ja$d;->k:Landroid/graphics/RectF;

    invoke-virtual {v5}, Landroid/graphics/RectF;->height()F

    move-result v5

    cmpl-float v5, v5, v6

    if-gtz v5, :cond_6

    :cond_1
    iget-object v5, p0, Les/ja;->d:Les/f8;

    if-eqz v5, :cond_2

    .line 10
    invoke-virtual {v5, v0}, Les/f8;->a(Landroid/util/Pair;)Z

    move-result v5

    if-nez v5, :cond_6

    :cond_2
    iget-object v5, p0, Les/ja;->e:Les/t7;

    if-eqz v5, :cond_3

    .line 11
    invoke-virtual {v5, v0}, Les/t7;->a(Landroid/util/Pair;)Z

    move-result v0

    if-nez v0, :cond_6

    :cond_3
    if-nez v1, :cond_6

    iget-object v0, p0, Les/ja;->f:Les/a8;

    if-eqz v0, :cond_4

    .line 12
    invoke-virtual {v0}, Les/a8;->b()Z

    move-result v0

    if-nez v0, :cond_6

    :cond_4
    if-nez v2, :cond_5

    goto :goto_1

    :cond_5
    const/4 v3, 0x0

    :cond_6
    :goto_1
    return v3
.end method

.method static synthetic l(Les/ja;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Les/ja;->o:Z

    return p0
.end method

.method static synthetic m(Les/ja;)Les/ja$d;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ja;->c:Les/ja$d;

    return-object p0
.end method

.method private m()Z
    .locals 6

    .line 2
    iget-object v0, p0, Les/ja;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_6

    new-instance v0, Ljava/io/File;

    iget-object v2, p0, Les/ja;->b:Ljava/lang/String;

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_2

    .line 3
    :cond_0
    iget-object v0, p0, Les/ja;->c:Les/ja$d;

    if-nez v0, :cond_1

    return v1

    .line 4
    :cond_1
    invoke-virtual {p0}, Les/ja;->e()V

    .line 5
    iget-object v0, p0, Les/ja;->c:Les/ja$d;

    iget-wide v2, v0, Les/ja$d;->g:J

    const-wide/16 v4, 0x0

    invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v2

    iput-wide v2, v0, Les/ja$d;->g:J

    .line 6
    iget-object v0, p0, Les/ja;->A:Les/ja$e;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 7
    monitor-enter p0

    .line 8
    :goto_0
    :try_start_0
    iget-boolean v0, p0, Les/ja;->m:Z

    if-nez v0, :cond_2

    .line 9
    invoke-virtual {p0}, Ljava/lang/Object;->wait()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    goto :goto_1

    .line 10
    :catch_0
    :cond_2
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 11
    iget-object v0, p0, Les/ja;->t:Les/n7;

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/ja;->u:Les/q7;

    if-nez v0, :cond_4

    :cond_3
    iget-object v0, p0, Les/ja;->w:Les/u9;

    if-eqz v0, :cond_5

    :cond_4
    const/4 v1, 0x1

    :cond_5
    return v1

    .line 12
    :goto_1
    :try_start_2
    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v0

    :cond_6
    :goto_2
    return v1
.end method

.method private n()Z
    .locals 18

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/ja;->c:Les/ja$d;

    iget-wide v2, v0, Les/ja$d;->h:J

    .line 2
    new-instance v0, Les/u9;

    iget-object v4, v1, Les/ja;->b:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-direct {v0, v4, v5}, Les/u9;-><init>(Ljava/lang/String;Z)V

    iput-object v0, v1, Les/ja;->w:Les/u9;

    .line 3
    invoke-virtual {v0}, Les/u9;->a()Landroid/media/MediaFormat;

    move-result-object v0

    .line 4
    iput-object v0, v1, Les/ja;->v:Landroid/media/MediaFormat;

    const/4 v4, 0x0

    if-eqz v0, :cond_f

    .line 5
    new-instance v6, Les/ea;

    iget-object v7, v1, Les/ja;->c:Les/ja$d;

    iget-object v7, v7, Les/ja$d;->m:Ljava/util/List;

    invoke-direct {v6, v7}, Les/ea;-><init>(Ljava/util/List;)V

    iput-object v6, v1, Les/ja;->z:Les/ea;

    .line 6
    new-instance v6, Les/fa;

    iget-object v7, v1, Les/ja;->c:Les/ja$d;

    iget v7, v7, Les/ja$d;->d:I

    invoke-direct {v6, v7}, Les/fa;-><init>(I)V

    iput-object v6, v1, Les/ja;->B:Les/fa;

    const-string v6, "width"

    .line 7
    invoke-virtual {v0, v6}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v6

    iput v6, v1, Les/ja;->h:I

    const-string v6, "height"

    .line 8
    invoke-virtual {v0, v6}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result v6

    iput v6, v1, Les/ja;->i:I

    const-string v6, "mime"

    .line 9
    invoke-virtual {v0, v6}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v1, Les/ja;->g:Ljava/lang/String;

    .line 10
    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/d;->a(Landroid/media/MediaFormat;)Les/b9;

    move-result-object v6

    iput-object v6, v1, Les/ja;->l:Les/b9;

    if-eqz v6, :cond_0

    .line 11
    iget v6, v6, Les/b9;->b:I

    invoke-static {v6}, Lcom/esfile/screen/recorder/media/util/c;->g(I)I

    move-result v6

    iput v6, v1, Les/ja;->j:I

    .line 12
    iget-object v6, v1, Les/ja;->l:Les/b9;

    iget v6, v6, Les/b9;->c:I

    invoke-static {v6}, Lcom/esfile/screen/recorder/media/util/c;->f(I)I

    move-result v6

    iput v6, v1, Les/ja;->k:I

    goto :goto_0

    :cond_0
    const/4 v6, -0x1

    .line 13
    iput v6, v1, Les/ja;->j:I

    .line 14
    iput v6, v1, Les/ja;->k:I

    .line 15
    :goto_0
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "mSrcProfile:"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v7, v1, Les/ja;->j:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, " mSrcLevel:"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v7, v1, Les/ja;->k:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const-string v7, "vpsr"

    invoke-static {v7, v6}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "mSrcSPS:"

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v8, v1, Les/ja;->l:Les/b9;

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v7, v6}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/16 v8, 0x0

    const-string v6, "durationUs"

    .line 17
    invoke-static {v0, v6, v8, v9}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;J)J

    move-result-wide v10

    .line 18
    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget-wide v12, v6, Les/ja$d;->g:J

    invoke-static {v12, v13, v8, v9}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v12

    iput-wide v12, v6, Les/ja$d;->g:J

    .line 19
    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget-wide v12, v6, Les/ja$d;->h:J

    cmp-long v14, v12, v8

    if-gez v14, :cond_1

    goto :goto_1

    :cond_1
    invoke-static {v10, v11, v12, v13}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v10

    :goto_1
    iput-wide v10, v6, Les/ja$d;->h:J

    .line 20
    invoke-direct/range {p0 .. p0}, Les/ja;->l()Z

    move-result v6

    .line 21
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "This video need"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz v6, :cond_2

    const-string v9, " "

    goto :goto_2

    :cond_2
    const-string v9, " not "

    :goto_2
    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v9, "process"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 22
    invoke-direct/range {p0 .. p0}, Les/ja;->l()Z

    move-result v8

    const/4 v9, 0x1

    if-nez v8, :cond_5

    .line 23
    iget-object v2, v1, Les/ja;->w:Les/u9;

    iget-object v3, v1, Les/ja;->F:Les/u9$a;

    invoke-virtual {v2, v3}, Les/u9;->a(Les/u9$a;)V

    .line 24
    iget-object v2, v1, Les/ja;->c:Les/ja$d;

    iget-wide v13, v2, Les/ja$d;->g:J

    .line 25
    iget-object v10, v1, Les/ja;->w:Les/u9;

    iget-wide v2, v2, Les/ja$d;->h:J

    const/4 v15, 0x2

    move-wide v11, v13

    move-wide/from16 v16, v13

    move-wide v13, v2

    invoke-virtual/range {v10 .. v15}, Les/u9;->a(JJI)J

    move-result-wide v2

    sub-long v10, v2, v16

    .line 26
    invoke-static {v10, v11}, Ljava/lang/Math;->abs(J)J

    move-result-wide v10

    const-wide/32 v12, 0x7a120

    cmp-long v8, v10, v12

    if-lez v8, :cond_4

    const-string v2, "need precise seek"

    .line 27
    invoke-static {v7, v2}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 28
    iget-object v10, v1, Les/ja;->w:Les/u9;

    iget-object v2, v1, Les/ja;->c:Les/ja$d;

    iget-wide v13, v2, Les/ja$d;->h:J

    const/4 v15, 0x1

    move-wide/from16 v11, v16

    invoke-virtual/range {v10 .. v15}, Les/u9;->a(JJI)J

    move-result-wide v2

    .line 29
    iget-object v7, v1, Les/ja;->c:Les/ja$d;

    iget-wide v7, v7, Les/ja$d;->h:J

    cmp-long v10, v2, v16

    if-lez v10, :cond_3

    cmp-long v10, v2, v7

    if-gez v10, :cond_3

    goto :goto_3

    :cond_3
    cmp-long v10, v2, v16

    move-wide v2, v7

    if-gtz v10, :cond_5

    const/4 v6, 0x1

    goto :goto_3

    .line 30
    :cond_4
    iget-object v0, v1, Les/ja;->c:Les/ja$d;

    iput-wide v2, v0, Les/ja$d;->g:J

    return v9

    :cond_5
    :goto_3
    if-eqz v6, :cond_6

    .line 31
    iget-object v6, v1, Les/ja;->w:Les/u9;

    invoke-virtual {v6, v4}, Les/u9;->a(Les/u9$a;)V

    .line 32
    iget-object v6, v1, Les/ja;->w:Les/u9;

    invoke-virtual {v6}, Les/u9;->stop()V

    .line 33
    iput-object v4, v1, Les/ja;->w:Les/u9;

    .line 34
    :cond_6
    invoke-direct/range {p0 .. p0}, Les/ja;->k()V

    .line 35
    new-instance v6, Les/q7;

    iget-object v7, v1, Les/ja;->c:Les/ja$d;

    iget v11, v7, Les/ja$d;->a:I

    iget v12, v7, Les/ja$d;->b:I

    iget v13, v7, Les/ja$d;->c:I

    iget v14, v7, Les/ja$d;->d:I

    iget v15, v7, Les/ja$d;->e:I

    iget v7, v7, Les/ja$d;->f:I

    move-object v10, v6

    move/from16 v16, v7

    invoke-direct/range {v10 .. v16}, Les/q7;-><init>(IIIIII)V

    iput-object v6, v1, Les/ja;->u:Les/q7;

    .line 36
    new-instance v6, Landroid/os/HandlerThread;

    const-string v7, "VideoProcessorEnc"

    invoke-direct {v6, v7}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    .line 37
    invoke-virtual {v6}, Landroid/os/HandlerThread;->start()V

    .line 38
    iget-object v7, v1, Les/ja;->u:Les/q7;

    iget-object v8, v1, Les/ja;->E:Les/l9$h;

    new-instance v10, Landroid/os/Handler;

    invoke-virtual {v6}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v6

    invoke-direct {v10, v6}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    invoke-virtual {v7, v8, v10}, Les/l9;->a(Les/l9$h;Landroid/os/Handler;)V

    .line 39
    :try_start_0
    iget-object v6, v1, Les/ja;->u:Les/q7;

    invoke-virtual {v6}, Les/o7;->n()Z

    move-result v6

    if-eqz v6, :cond_b

    .line 40
    new-instance v6, Lcom/esfile/screen/recorder/media/glutils/c;

    iget-object v7, v1, Les/ja;->u:Les/q7;

    invoke-virtual {v7}, Les/q7;->D()Landroid/view/Surface;

    move-result-object v7

    invoke-direct {v6, v7}, Lcom/esfile/screen/recorder/media/glutils/c;-><init>(Landroid/view/Surface;)V

    iput-object v6, v1, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    .line 41
    invoke-virtual {v6}, Lcom/esfile/screen/recorder/media/glutils/c;->a()V

    .line 42
    new-instance v6, Les/n7;

    invoke-direct {v6}, Les/n7;-><init>()V

    iput-object v6, v1, Les/ja;->t:Les/n7;

    .line 43
    iget-object v7, v1, Les/ja;->b:Ljava/lang/String;

    invoke-virtual {v6, v7}, Les/m7;->b(Ljava/lang/String;)Z

    const-string v6, "rotation-degrees"

    .line 44
    invoke-static {v0, v6, v5}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v0

    const/16 v6, 0x5a

    if-eq v0, v6, :cond_8

    const/16 v6, 0x10e

    if-ne v0, v6, :cond_7

    goto :goto_4

    :cond_7
    const/4 v0, 0x0

    goto :goto_5

    :cond_8
    :goto_4
    const/4 v0, 0x1

    .line 45
    :goto_5
    iget-object v6, v1, Les/ja;->u:Les/q7;

    invoke-virtual {v6}, Les/q7;->E()Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v6

    .line 46
    new-instance v7, Les/ga;

    invoke-virtual {v6}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v8

    invoke-virtual {v6}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v6

    if-nez v0, :cond_9

    iget v10, v1, Les/ja;->h:I

    goto :goto_6

    :cond_9
    iget v10, v1, Les/ja;->i:I

    :goto_6
    if-nez v0, :cond_a

    iget v0, v1, Les/ja;->i:I

    goto :goto_7

    :cond_a
    iget v0, v1, Les/ja;->h:I

    :goto_7
    invoke-direct {v7, v8, v6, v10, v0}, Les/ga;-><init>(IIII)V

    iput-object v7, v1, Les/ja;->y:Les/ga;

    .line 47
    iget-object v0, v1, Les/ja;->d:Les/f8;

    invoke-virtual {v7, v0}, Les/ga;->a(Les/f8;)V

    .line 48
    iget-object v0, v1, Les/ja;->y:Les/ga;

    iget-object v6, v1, Les/ja;->e:Les/t7;

    invoke-virtual {v0, v6}, Les/ga;->a(Les/t7;)V

    .line 49
    iget-object v0, v1, Les/ja;->y:Les/ga;

    iget-object v6, v1, Les/ja;->f:Les/a8;

    invoke-virtual {v0, v6}, Les/ga;->a(Les/a8;)V

    .line 50
    iget-object v0, v1, Les/ja;->y:Les/ga;

    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget-object v6, v6, Les/ja$d;->i:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    invoke-virtual {v0, v6}, Les/ga;->a(Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)V

    .line 51
    iget-object v0, v1, Les/ja;->y:Les/ga;

    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget v6, v6, Les/ja$d;->j:I

    invoke-virtual {v0, v6}, Les/ga;->a(I)V

    .line 52
    iget-object v0, v1, Les/ja;->y:Les/ga;

    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget-object v6, v6, Les/ja$d;->k:Landroid/graphics/RectF;

    iget-object v7, v1, Les/ja;->c:Les/ja$d;

    iget-boolean v7, v7, Les/ja$d;->l:Z

    invoke-virtual {v0, v6, v7}, Les/ga;->a(Landroid/graphics/RectF;Z)V

    .line 53
    iget-object v0, v1, Les/ja;->t:Les/n7;

    iget-object v6, v1, Les/ja;->y:Les/ga;

    invoke-virtual {v6}, Lcom/esfile/screen/recorder/media/glutils/d;->c()Landroid/view/Surface;

    move-result-object v6

    invoke-virtual {v0, v6}, Les/n7;->a(Landroid/view/Surface;)V

    .line 54
    iget-object v0, v1, Les/ja;->t:Les/n7;

    iget-object v6, v1, Les/ja;->D:Les/m7$h;

    invoke-virtual {v0, v6}, Les/m7;->a(Les/m7$h;)V

    .line 55
    iget-object v0, v1, Les/ja;->t:Les/n7;

    invoke-virtual {v0}, Les/m7;->g()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 56
    iget-object v0, v1, Les/ja;->t:Les/n7;

    iget-object v6, v1, Les/ja;->c:Les/ja$d;

    iget-wide v6, v6, Les/ja$d;->g:J

    invoke-virtual {v0, v6, v7, v2, v3}, Les/m7;->a(JJ)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return v9

    :catch_0
    move-exception v0

    .line 57
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 58
    :cond_b
    iget-object v0, v1, Les/ja;->t:Les/n7;

    if-eqz v0, :cond_c

    .line 59
    invoke-virtual {v0}, Les/m7;->h()V

    .line 60
    iput-object v4, v1, Les/ja;->t:Les/n7;

    .line 61
    :cond_c
    iget-object v0, v1, Les/ja;->u:Les/q7;

    if-eqz v0, :cond_d

    .line 62
    invoke-virtual {v0}, Les/l9;->r()V

    .line 63
    iput-object v4, v1, Les/ja;->u:Les/q7;

    .line 64
    :cond_d
    iget-object v10, v1, Les/ja;->w:Les/u9;

    if-eqz v10, :cond_e

    .line 65
    iget-object v0, v1, Les/ja;->c:Les/ja$d;

    iget-wide v11, v0, Les/ja$d;->g:J

    iget-wide v13, v0, Les/ja$d;->h:J

    const/4 v15, 0x2

    .line 66
    invoke-virtual/range {v10 .. v15}, Les/u9;->a(JJI)J

    move-result-wide v2

    iput-wide v2, v0, Les/ja$d;->g:J

    return v9

    :cond_e
    return v5

    .line 67
    :cond_f
    iget-object v0, v1, Les/ja;->w:Les/u9;

    invoke-virtual {v0}, Les/u9;->stop()V

    .line 68
    iput-object v4, v1, Les/ja;->w:Les/u9;

    return v5
.end method

.method private o()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/ja;->t:Les/n7;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/m7;->h()V

    .line 3
    :cond_0
    iget-object v0, p0, Les/ja;->u:Les/q7;

    if-eqz v0, :cond_1

    .line 4
    invoke-virtual {v0}, Les/l9;->r()V

    .line 5
    :cond_1
    iget-object v0, p0, Les/ja;->w:Les/u9;

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {v0}, Les/u9;->stop()V

    .line 7
    :cond_2
    iget-object v0, p0, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    .line 8
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/glutils/c;->b()V

    .line 9
    iput-object v1, p0, Les/ja;->x:Lcom/esfile/screen/recorder/media/glutils/c;

    .line 10
    :cond_3
    iget-object v0, p0, Les/ja;->y:Les/ga;

    if-eqz v0, :cond_4

    .line 11
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/glutils/d;->h()V

    .line 12
    iput-object v1, p0, Les/ja;->y:Les/ga;

    :cond_4
    return-void
.end method


# virtual methods
.method public declared-synchronized a(J)V
    .locals 1

    monitor-enter p0

    .line 7
    :try_start_0
    iget-boolean v0, p0, Les/ja;->o:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 8
    monitor-exit p0

    return-void

    .line 9
    :cond_0
    :try_start_1
    iput-wide p1, p0, Les/ja;->q:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 10
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method protected a()Z
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method protected c()Z
    .locals 1

    .line 3
    invoke-virtual {p0}, Les/ja;->e()V

    .line 4
    invoke-super {p0}, Les/t9;->c()Z

    move-result v0

    return v0
.end method

.method public d()V
    .locals 0

    .line 2
    invoke-super {p0}, Les/t9;->d()V

    .line 3
    invoke-virtual {p0}, Les/ja;->h()V

    .line 4
    invoke-virtual {p0}, Les/ja;->i()V

    return-void
.end method

.method public e()V
    .locals 2

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/ja;->o:Z

    .line 3
    iget-object v0, p0, Les/ja;->A:Les/ja$e;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 4
    monitor-enter p0

    .line 5
    :goto_0
    :try_start_0
    iget-boolean v0, p0, Les/ja;->p:Z

    if-nez v0, :cond_0

    .line 6
    invoke-virtual {p0}, Ljava/lang/Object;->wait()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    goto :goto_1

    .line 7
    :catch_0
    :cond_0
    :try_start_1
    monitor-exit p0

    return-void

    :goto_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public f()Landroid/graphics/Bitmap;
    .locals 3

    .line 2
    iget-object v0, p0, Les/ja;->u:Les/q7;

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/ja;->C:Ljava/nio/ByteBuffer;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v0

    if-lez v0, :cond_0

    .line 3
    iget-object v0, p0, Les/ja;->u:Les/q7;

    invoke-virtual {v0}, Les/q7;->E()Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v0

    iget-object v1, p0, Les/ja;->u:Les/q7;

    invoke-virtual {v1}, Les/q7;->E()Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v1

    invoke-virtual {v1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v1

    sget-object v2, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v0, v1, v2}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 4
    iget-object v1, p0, Les/ja;->C:Ljava/nio/ByteBuffer;

    invoke-virtual {v0, v1}, Landroid/graphics/Bitmap;->copyPixelsFromBuffer(Ljava/nio/Buffer;)V

    const/4 v1, 0x1

    .line 5
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/media/util/e;->a(Landroid/graphics/Bitmap;Z)Landroid/graphics/Bitmap;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method

.method public g()Les/ja$d;
    .locals 1

    .line 2
    iget-object v0, p0, Les/ja;->c:Les/ja$d;

    return-object v0
.end method

.method public h()V
    .locals 2

    .line 2
    iget-object v0, p0, Les/ja;->c:Les/ja$d;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/ja$d;->n:Les/b8;

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, v0, Les/b8;->b:Ljava/lang/Object;

    instance-of v1, v0, Landroid/graphics/Bitmap;

    if-eqz v1, :cond_0

    .line 4
    check-cast v0, Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 5
    iget-object v0, p0, Les/ja;->c:Les/ja$d;

    iget-object v0, v0, Les/ja$d;->n:Les/b8;

    const/4 v1, 0x0

    iput-object v1, v0, Les/b8;->b:Ljava/lang/Object;

    .line 6
    :cond_0
    iget-object v0, p0, Les/ja;->f:Les/a8;

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {v0}, Les/a8;->a()V

    :cond_1
    return-void
.end method

.method public i()V
    .locals 1

    .line 2
    iget-object v0, p0, Les/ja;->C:Ljava/nio/ByteBuffer;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Les/ja;->C:Ljava/nio/ByteBuffer;

    :cond_0
    return-void
.end method

.method public j()Z
    .locals 2

    .line 2
    invoke-direct {p0}, Les/ja;->m()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Les/ja;->u:Les/q7;

    if-eqz v0, :cond_0

    iget-object v1, p0, Les/ja;->t:Les/n7;

    if-eqz v1, :cond_0

    .line 4
    invoke-virtual {v0}, Les/l9;->p()V

    .line 5
    iget-object v0, p0, Les/ja;->t:Les/n7;

    invoke-virtual {v0}, Les/m7;->k()V

    goto :goto_0

    .line 6
    :cond_0
    iget-object v0, p0, Les/ja;->w:Les/u9;

    invoke-virtual {v0}, Les/u9;->b()V

    :goto_0
    const/4 v0, 0x1

    .line 7
    iput-boolean v0, p0, Les/ja;->o:Z

    return v0

    :cond_1
    const/4 v0, 0x0

    return v0
.end method
